import {ApplyStatus} from '../common/constants';
import {ApplyDeviceDto} from "./apply.device.dto";
import {ApplyUserDto} from "./apply.user.dto";

export class ApplyDto {
    id: string;
    deviceSn: string;
    applyUseDate: string;
    applyUseTimeRange: string;
    applyAccountId: string;
    approveAccountIdList: string;
    nextApproveAccountId: string;
    applyTime: string;
    applyRemark: string;
    status: ApplyStatus;
    deviceInfo?: ApplyDeviceDto;
    applyUserInfo?: ApplyUserDto;
    approveUserInfo?: ApplyUserDto;


    constructor(id: string, deviceSn: string, applyUseDate: string, applyUseTimeRange: string, applyAccountId: string, approveAccountIdList: string, nextApproveAccountId: string, applyTime: string, applyRemark: string, status: ApplyStatus) {
        this.id = id;
        this.deviceSn = deviceSn;
        this.applyUseDate = applyUseDate;
        this.applyUseTimeRange = applyUseTimeRange;
        this.applyAccountId = applyAccountId;
        this.approveAccountIdList = approveAccountIdList;
        this.nextApproveAccountId = nextApproveAccountId;
        this.applyTime = applyTime;
        this.applyRemark = applyRemark;
        this.status = status;
    }
}
